Skip to content

Align InteractingLayer initialization with DeepCTR#312

Merged
shenweichen merged 1 commit into
masterfrom
codex/interacting-layer-init-parity
Jul 9, 2026
Merged

Align InteractingLayer initialization with DeepCTR#312
shenweichen merged 1 commit into
masterfrom
codex/interacting-layer-init-parity

Conversation

@shenweichen

Copy link
Copy Markdown
Owner

Summary

  • Align InteractingLayer truncated-normal initialization with DeepCTR/TensorFlow's default TruncatedNormal scale.
  • Update the layer test expectation for the wider truncated-normal range.

Validation

  • python -m pytest tests/layers/interaction_test.py tests/models/AutoInt_test.py tests/models/DIFM_test.py -q
  • Criteo2M GPU spot checks, 1 epoch, batch size 1024, seeds 2026/2027/2028:
    • AutoInt TF-vs-Torch mean AUC gap narrowed from +0.001531 to +0.000586.
    • AutoInt Torch mean AUC changed from 0.786146 to 0.787090.
    • DIFM new branch vs master mean AUC changed by +0.000598.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0 (≤ 20 complexity)
Duplication 0 (≤ 1 duplication)

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.19%. Comparing base (3b970d1) to head (75b607d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #312   +/-   ##
=======================================
  Coverage   93.19%   93.19%           
=======================================
  Files          35       35           
  Lines        2484     2484           
=======================================
  Hits         2315     2315           
  Misses        169      169           
Flag Coverage Δ
pytest 93.19% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shenweichen
shenweichen merged commit 9eccef7 into master Jul 9, 2026
14 of 24 checks passed
@shenweichen
shenweichen deleted the codex/interacting-layer-init-parity branch July 9, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant